package cn.sczhyt.modules.szhy.service;

import cn.sczhyt.common.utils.R;
import cn.sczhyt.modules.app.entity.UserEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.sczhyt.common.utils.PageUtils;
import cn.sczhyt.modules.szhy.entity.MeetingFileEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * 会议附件表
 *
 * @author luoshijie
 * @email 1169414426@qq.com
 * @date 2020-09-11 16:50:36
 */
public interface MeetingFileService extends IService<MeetingFileEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveMeetingFile(MultipartFile[] files,String meetingId);

    IPage<MeetingFileEntity> findAll(Integer page,Integer limit, String meetingId);

    R delect(String Id);

    void download(String id, HttpServletResponse response, HttpServletRequest request) throws UnsupportedEncodingException;

    IPage<MeetingFileEntity> appFindAll(UserEntity user, Integer page, Integer limit, String meetingId);
}

